package com.imti.mall.product.service;

import com.imti.mall.model.pms.pojo.PmsProductFullReduction;
import com.imti.mall.model.pms.pojo.PmsProductLadder;
import com.imti.mall.model.pms.pojo.PmsSkuStock;


import java.util.List;

public interface PmsSkuStockService {
    /**
     * 根据商品id查询SKU
     * @param id
     * @return
     */
    public List<PmsSkuStock> getPmsSkuStockproductProductId(Integer id);


    /**
     * 根据商品id和SKU编号查询SKU数据
     * @param id
     * @return
     */
    public PmsSkuStock getPmsSkuStockproductProductSkuCode(Integer id,String skuCode);


    /**
     * 根据id修改SKU数据
     * @param pmsSkuStock
     * @return
     */
    public Integer updateSkuStockById(PmsSkuStock pmsSkuStock);

    /**
     * 根据id删除sku数据
     * @param id
     * @return
     */
    public Integer delSkuStockById(Integer id);

    /**
     * 根据添加sku数据
     * @param pmsSkuStock
     * @return
     */
    public Integer addSkuStockById(PmsSkuStock pmsSkuStock);


    /**
     * 批量添加
     * @param list
     * @return
     */
    public boolean addList(List<PmsSkuStock> list);

    /**
     * 批量修改
     * @param list
     * @return
     */
    public boolean updateList(List<PmsSkuStock> list);

    /**
     * 批量修改
     * @param list
     * @return
     */
    public boolean deleteList(List<PmsSkuStock> list);

}
